
import {
    toast
} from 'nc-lightapp-front';

import getJobHisData from '../../components/JobHisModal/functions/getJobHistoryData';

import language from '../../language';

export default function() {
    const {
        clickRow
    } = this.state;
    // let highLightRow = this.props.editTable.getClickRowIndex('ncc60071701list');

    if(clickRow) {
        getJobHisData.call(this, clickRow.record.values.pk_psnjob.value);
    }
    else {
        toast({
            color: 'warning',
            content: language['hi6007-000066']/* 国际化处理： 请先点击你要查看的数据*/
        });
    }
}
